
cmake_minimum_required(VERSION 3.5.1)

project(spark-store-submitter-starter LANGUAGES CXX VERSION 0.1)

include(cmake/SparkInstallMacros.cmake)

# 剩下的就是安装操作
# 1.安装路径抬头
# 2.安装到指定位置的可执行文件、icon图标、desktop 文件
# 3.可扩展的打包功能，与依赖图生成功能

# 安装 starter.py
spark_install_program(/opt/spark-store-submitter/bin
    starter.py)
# 安装图标
spark_install_file(/opt/spark-store-submitter/starter/icon
    icon.png)
# 安装 desktop
spark_install_file(/usr/share/applications
    spark-store-submitter-starter.desktop)

find_package(DebPackage PATHS ${CMAKE_SOURCE_DIR})
add_package_descript(cmake/package-deb.descript)
